import request from '../utils/request';

export const listCommentView = (data) => {
    return request({
        url: '/api/chat/listView',
        method: 'post',
        data: data
    });
};

export const listComment = (data) => {
    return request({
        url: '/api/chat/list',
        method: 'post',
        data: data
    });
};

export const updateComment = (data) => {
    return request({
        url: '/api/chat/update',
        method: 'post',
        data: data
    });
};

export const insertComment = (data) => {
    return request({
        url: '/api/chat/insert',
        method: 'post',
        data: data
    });
};

export const deleteComment = (data) => {
    return request({
        url: '/api/chat/delete',
        method: 'post',
        params: data,
        data: {}
    });
};
